package controllers

import (
	"gin-cli/app/models"
	db2 "gin-cli/utils/db"
	"github.com/gin-gonic/gin"
	"log"
)

func Get (c *gin.Context) {
	log.Println(c.Request.Header)
	s := new (models.Student)
	id := c.Query("id")

	db2.Mysql().First(&s, id)
	c.JSON(200, s)
	return
}
